<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="{ADMIN_THEME}images/reset.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/system.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/dialog.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/main.css" rel="stylesheet" type="text/css" />
<link href="{ADMIN_THEME}images/switchbox.css" rel="stylesheet" type="text/css" />

	{template admin/top.html}
<link href="{ADMIN_THEME}luos/css/style.min.css?v=4.1.0" rel="stylesheet"><link href="{ADMIN_THEME}images/table_form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{ADMIN_THEME}js/jquery.min.js"></script>
<script type="text/javascript" src="{ADMIN_THEME}js/dialog.js"></script>
<script type="text/javascript" src="{LANG_PATH}lang.js"></script>
<script type="text/javascript">
function get_avatar(filepath) {
	if (filepath) {
		var content = '<img src="'+filepath+'" />';
	} else {
		var content = fc_lang[0];
	}
	window.top.art.dialog({title:fc_lang[1],fixed:true, content: content});
}
function setC() {
	if($("#deletec").attr('checked')) {
		$(".deletec").attr("checked",true);
	} else {
		$(".deletec").attr("checked",false);
	}
}
</script>
<title>admin</title>
</head>
<body style="font-weight: normal;">
<div class="subnav">
	<div class="content-menu ib-a line-x">
		<div class="layui-btn-group">
			<a href="{url('admin/member')}" class="layui-btn">服务列表</a>
			<!--<a class="layui-btn" href="{url('admin/member/edit')}"><em>添加</em></a>-->
			<a onClick="window.history.go(-1);" href="javascript:void(0);" class="layui-btn ">上一页</a>
		</div>
	</div>

	<div class="bk10"></div>
	{if !$user_cityid}
	<div class="explain-col">
	<form method="post" action="">
	{/if}
	<div class="table-responsive mytable">
		<form action="" method="post">
		<input name="form" id="list_form" type="hidden" value="" />
		<table class="table table-striped" width="100%">
		<thead>
		<tr>
			<th width="180" align="left">ID</th>
			<th width="180" align="left">购买订单号</th>
			<th width="180" align="left">购买状态</th>
            <th width="180" align="left">会员昵称</th>
            <th width="180" align="left">会员头像</th>
			<th width="180" align="left">购买金额</th>
			<th width="180" align="left">购买时间</th>
			<th width="180" align="left">到期时间</th>
			<th align="left">操作</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $key=>$item}
		<tr height="25">
			<td align="left">{$item['id']}</td>
			<td align="left">{$item['ordersn']}</td>
			<td align="left">{$item['status']==666?'已购买服务':'未购买'}</td>
			{php $weixin = get_nikename($item[openid]);}
            <td align="left">{$weixin['nickname']?$weixin['nickname']:'请同步微信用户'}</td>
            <td align="left"><img src="{$weixin['headimgurl']}" width="60px"></td>
			<td align="left">{$item['jine']}</td>
			<td align="left">{date('Y-m-d H:i',$item['addtime'])}</td>
			<td align="left">{date('Y-m-d H:i',$item['endtime'])}</td>
			<td align="left">
			<div class="layui-btn-group">
				<!--<a href="{url('admin/member/edit',array('id' => $item[id]))}" class="layui-btn layui-btn-small">编辑<i class="layui-icon"></i></a>-->
				<a href="javascript:;" onClick="if(confirm('确认删除？')){ window.location.href='<?php echo url('admin/member/del/',array('id'=>$item['id']));?>'; }" class="layui-btn layui-btn-danger layui-btn-small">删除<i class="layui-icon"></i></a>
			</div>
			</td>
		</tr>
		{/loop}  
		</tbody>
		</table>
		{str_replace('<a>共' . $total . '条</a>', '<a>耗时' . runtime() . '秒</a><a>共' . $total . '条</a>', $pagelist)}
		</form>
	</div>

</div>
</body>
</html>